package 面试相关;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;

public class _单峰数组 {
    /*public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long n = scanner.nextInt();
        long x = scanner.nextInt();
        scanner.nextLine();
        String s = scanner.nextLine();
        if(n == 0){
            System.out.println(0);
        }
        char[] chars = s.toCharArray();
        long res = x;
        for(int i = 0; i < n; i++){
            char c = chars[i];
            if(c == 'U'){
                res = res / 2;
            }else if(c == 'R'){
                res = res * 2 + 1;
            }else if(c == 'L'){
                res = res * 2;
            }
        }
        System.out.println(res);
    }*/
    /*public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long n = scanner.nextLong();
        long x = scanner.nextLong();
        scanner.nextLine();
        String s = scanner.nextLine();
        if(s.length() != n){
            System.out.println(0);
        }
        char[] chars = s.toCharArray();
        long res = x;
        for(int i = 0; i < n; i++){
            char c = chars[i];
            if(c == 'U'){
                res = res / 2;
            }else if(c == 'R'){
                res = res * 2 + 1;
            }else if(c == 'L'){
                res = res * 2;
            }
        }
        System.out.println(res);
    }*/
}
